
#ifndef _MEMBER_BSTACKLAYOUT_H_
#define _MEMBER_BSTACKLAYOUT_H_

#include <BSpring>
#include <BSpacer>
#include <BWidget>
#include <BStackLayout>
#include "ILayoutItem.h"

#define stacklayout_member(layout)		((member_BStackLayout*)((BStackLayout*)layout)->_ptr)

namespace BWE
{
	class BWidget;

	class member_BStackLayout : public BObject
	{
		friend class BStackLayout;
	public:
		member_BStackLayout(BStackLayout* layout);
		~member_BStackLayout();

		void slotWidgetShown(BObject* object, const BValue& value);
		void slotLayoutShown(BObject* object, const BValue& value);

	public:
		BStackLayout*		boss;
		int					current;
		BArray<ILayoutItem>	items;
	};
}

#endif
